<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../struts_taglib.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>  
  <title>旅游计划/编辑</title>
  <%@ include file="../link_script.jsp" %>
  <script type="text/javascript">
    $(function() { 
      $("form").validity(function() {
        $("#tpName").require();
        $("#tpDays").require();
        $("#estimate").require();
      });
    });
  </script>
</head>
<body> 
<form action="tourismPlan.do?method=editTourismPlan_Do&pageNum=${pageNum}" method="post" target="_self">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <%@include file="../operate_button_add.jsp" %>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="8" background="images/tab_12.gif">&nbsp;</td>
        <td><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#b5d6e6">       
          <tr>
            <td width="100%" class="STYLE32">编辑旅游/出差/探亲计划</td>
          </tr>
          <tr>
            <td class="STYLE1"><table width="100%" border="0" bordercolor="#b5d6e6" cellpadding="0" cellspacing="0">
              <tr>
                <td class="STYLE31" width="8%">&nbsp;&nbsp;计划名称 : </td>
                <td class="STYLE11"><input type="text" id="tpName" name="tpName" value="${tourismPlan.tpName}" size="30" title="计划名称不能为空" /></td>
              </tr>
              <tr>
                <td class="STYLE31" width="8%">&nbsp;&nbsp;计划类型 : </td>
                <td class="STYLE11">
                <select id="tpType" name="tpType">
                  <c:if test="${tourismPlan.tpType=='0'}">
                  <option value="0">旅游</option>
                  <option value="1">出差</option>
                  <option value="2">探亲</option> 
                  </c:if>
                  <c:if test="${tourismPlan.tpType=='1'}">
                  <option value="1">出差</option>
                  <option value="0">旅游</option>
                  <option value="2">探亲</option> 
                  </c:if> 
                  <c:if test="${tourismPlan.tpType=='2'}">
                  <option value="2">探亲</option> 
                  <option value="0">旅游</option>
                  <option value="1">出差</option>
                  </c:if>             
                </select>
                <br/></td>
              </tr>
              <tr>
                <td class="STYLE31" width="8%">&nbsp;&nbsp;开始日期 : </td>
                <td class="STYLE11"><input type="text" id="beginDate" name="beginDate" value="${tourismPlan.beginDate}" size="10" /></td>
              </tr>
              <tr>
                <td class="STYLE31" width="8%">&nbsp;&nbsp;结束日期 : </td>
                <td class="STYLE11"><input type="text" id="endDate" name="endDate" value="${tourismPlan.endDate}" size="10" /></td>
              </tr>
              <tr>
                <td class="STYLE31" width="8%">&nbsp;&nbsp;周期 : </td>
                <td class="STYLE11"><input type="text" id="tpDays" name="tpDays" value="${tourismPlan.tpDays}" size="10" title="计划周期不能为空" />&nbsp;天</td>
              </tr>
              <tr>
                <td class="STYLE31" width="8%">&nbsp;&nbsp;计划预算 : </td>
                <td class="STYLE11"><input type="text" id="estimate" name="estimate" value="${tourismPlan.estimate}" size="10" title="计划预算不能为空" />&nbsp;￥</td>
              </tr>
              <tr>
                <td class="STYLE31" width="8%">&nbsp;&nbsp;描述 : </td>
                <td class="STYLE11"><input type="text" id="tpDesc" name="tpDesc" value="${tourismPlan.tpDesc}" size="50" /></td>
              </tr>
              <tr>
                <td class="STYLE31" width="8%">&nbsp;&nbsp;</td>
                <td class="STYLE11"><input type=hidden id="tpID" name="tpID" value="${tourismPlan.tpID}" /></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td class="STYLE12"><input type="submit" value="提交"/><input type="reset" value="取消"/></td>
          </tr>
        </table></td>
        <td width="8" background="images/tab_15.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <%@include file="../no_page.jsp" %>
</table>
</form>
</body>
</html>
